package net.atlasdream.mybatis.demo.service;

import net.atlasdream.mybatis.demo.model.Student;

import java.util.List;

/**
 * 学生业务逻辑接口类
 */
public interface StudentService {

    /**
     * 根据学生Id获取学生信息
     * @param studentId
     */
    Student findStudentById(int studentId);

    List<Student> findAllStudentsByLimit(int offset, int limit);

    List<Student> findAllStudents();
    Student findStudentWithAddress(int studentId);

    void createStudent(Student student);

    void deleteStudent(int studentId);

    void updateStudent(Student student);
}
